export class storeproductcate {
  id?: number;
  name = '';
                    productId=''
                  cateId=''
                  addTime=''
        constructor(data?: storeproductcate) {
    data && this.setProps(data);
  }

  setProps(data: storeproductcate) {
    (Object.keys(this) as Array<keyof Istoreproductcate>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Istoreproductcate = Omit<storeproductcate, 'setProps'>